﻿@{
    ViewBag.Title = "ProvinceUpdate";
    Layout = "~/Views/Shared/_Layout.cshtml";
    Exam.Model.Province mod = ViewData["Province"] as Exam.Model.Province;
}
<link href="~/Resources/Css/common.css" rel="stylesheet" />
<script src="~/resources/plugins/bootstrap-filestyle/1.2.1/bootstrap-filestyle.min.js"></script>
<script src="~/resources/plugins/ckeditor/4.5.5/standard/ckeditor.js"></script>
<script src="~/resources/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
<link href="~/resources/bootstrapvalidator/css/bootstrapValidator.min.css" rel="stylesheet" />
<script src="~/Resources/jquery-confirm/js/jquery-confirm.js"></script>
<link href="~/Resources/jquery-confirm/css/jquery-confirm.css" rel="stylesheet" />
<script src="~/Resources/Script/HtmlUtil.js"></script>
<form id="ProupdateForm">
    <div class="boxmain">
        <!-- box / title -->
        <div class="title">
            <ol class="breadcrumb">

                <li><a href="javascript:void(0);" onclick="goBack()">Province Management</a></li>
                <li class="active">Update Province</li>
            </ol>
        </div>

        <div class="form-horizontal">

            <div class="form-group">
                <label class="col-sm-2 control-label"><span>*</span>Province Name</label>
                <div class="col-sm-10">
                    <input type="text" id="ProvinceName" name="ProvinceName" value="@mod.ProvinceName" class="form-control" placeholder="Province Name" />

                </div>
            </div>
            <div class="form-group">
                    <label class="col-sm-2 control-label">Is Active</label>
                    <div class="col-sm-10">
                       @{
                           List<SelectListItem> list = new List<SelectListItem> {

                new SelectListItem { Text = "Active", Value = "0" },

                new SelectListItem { Text = "InActive", Value = "1" } };
                           list[mod.IsActive].Selected = true;
                       }
                        @Html.DropDownList("PIsActive", list, new { @class = "form-control" })
                    </div>
                </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">Remark</label>
                <div class="col-sm-10">
                    <textarea name="desTextarea" id="desTextarea" rows="10" maxlength="2000"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-10">

                    <input type="submit" class="col-sm-1 btn btn-primary" value="Save" />

                    <input type="button" class="col-sm-1 btn btn-default" id="btnBack" onclick="javascript: goBack();" value="Back" />
                </div>
            </div>
        </div>
    </div>
</form>
<input type="hidden" id="hidCom" value="@mod.Remark" />
<input type="hidden" id="hidProvinceId" value="@mod.ProvinceID" />
<input type="hidden" id="hidCreateTime" value="@mod.CreateTime" />
<input type="hidden" id="hidCreateUserID" value="@mod.CreateUserID" />
<script src="~/Resources/Script/Province/ProvinceUpdate.js"></script>